// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/utils/request'

/**
 * 新增StoreDownload
 * @param pram
 */
export function StoreDownloadCreateApi(data) {
    return request({
        url: 'admin/store/storeDownload/save',
        method: 'POST',
        data: data
    })
}

/**
 * storedownload更新
 * @param pram
 */
export function storedownloadUpdateApi(data) {
    return request({
        url: 'admin/store/storeDownload/update',
        method: 'POST',
        data: data
    })
}

/**
 * storedownload详情
 * @param pram
 */
export function storedownloadDetailApi(id) {
    return request({
        url: `admin/store/storeDownload/info/${id}`,
        method: 'GET'
    })
}

/**
 * storedownload删除
 * @param pram
 */
export function storedownloadDeleteApi(ids) {
    return request({
        url: `admin/store/storeDownload/delete`,
        method: 'post',
        data: ids
    })
}


/**
 * storedownload列表
 * @param pram
 */
export function storedownloadListApi(params) {
    return request({
        url: 'admin/store/storeDownload/list',
        method: 'GET',
        params
    })
}

